package com.letoken.platform.pub.constant;

/**
 * @author letokenlabs
 * @date 2022/11/15$
 */
public class RedisKeyConstant {

    public static final String GATEWAY_APP_AUTH_ = "gateway_app_auth_";

    /**
     * wallet address (用户钱包地址）
     */
    public static final String LETOKNE_USER_ADDRESS = "letoken:user:addr";
    public static final String LETOKNE_ADDRESS_USER = "letoken:addr:user";


    /**
     * letoken session （App会话）
     */
    public static final String LETOKEN_APP_LOGIN_SESSION = "letoken:app:session";

    /**
     * letoken token （用户登录凭证）
     */
    public static final String LETOKEN_APP_LOGIN = "letoken:app:login";

    /**
     * letoken token （用户登录凭证TOKEN）
     */
    public static final String LETOKEN_APP_LOGIN_TOKEN = "letoken:app:login:token";

    /**
     * letoken wallet token（代币token缓存）
     */
    public static final String LETOKEN_WALLET_LOGIN = "letoken:token:info";

    /**
     * 黑名单
     */
    public static final String LETOKEN_USER_WALLET_BLACK = "letoken:user:wallet:black";
    public static final String LETOKEN_USER_WALLET_BLACK_LIST = "letoken:user:wallet:black:list";

    /**
     * 白名单
     */
    public static final String LETOKEN_USER_WALLET_WHITE = "letoken:user:wallet:white";


    /**
     * 公链表
     */
    public static final String LETOKEN_BLOCKCHAIN = "letoken:blockchain";


    /**
     * 用户团队key
     */
    public static final String LETOKEN_APP_USER_TEAM = "letoken:app:user:team";

    /**
     * 用户团队key
     */
    public static final String LETOKEN_APP_USER_LOGIN_LOG = "letoken:app:login:log";

    /**
     * 代币价格key
     */
    public static final String LETOKEN_TOKEN_PRICE = "letoken:token:price";


    /**
     * 用户钱包交易Txid记录（bitmap)(key > letoken:user:wallet:tx, offset > hashcode(txid)
     */
    public static final String BLOOM_USER_WALLET_TX_GOING = "bloom:user:wallet:tx:going";
    public static final String BLOOM_USER_WALLET_TX_DONE = "bloom:user:wallet:tx:done";

    public static final String BLOOM_USER_WALLET_COLLECTION = "bloom:user:wallet:collection";
    public static final String BLOOM_USER_WALLET_WITHDRAW = "bloom:user:wallet:withdraw";

    public static final String UPDATE_APP_USER_ISSUE = "app:user:issue";

    public static final String UPDATE_FUND_INFO = "app:fund:info:update:%s";

    public static final String UPDATE_APP_USER_WALLET = "app:user:wallet";

    public static final String WEB3_CHAIN_PROVIDER = "web3:chain.provider";

    public static final String WEB3_CHAIN_NODE_SPEED = "web3:chain:node:speed";

    public static final String LIMIT_USER_WALLET_WITHDRAW = "limit:user:wallet:withdraw";
    /**
     * admin ip黑名单
     */
    public static final String ADMIN_LOGIN_IP_BLACK = "letoken:admin:ip:black";
    /**
     * admin username 黑名单
     */
    public static final String ADMIN_LOGIN_USERNAME_BLACK = "letoken:admin:username:black:";

    /**
     * 白名单
     */
    public static final String ADMIN_LOGIN_USERNAME_WHITE = "letoken:admin:username:white";

    /**
     * 登录失败次数
     */
    public static final String ADMIN_LOGIN_LIMIT = "letoken:admin:login:limit:";

    public static final String  APP_SMS_CODE = "APP:SMS_CODE:%s:%s";

    public static final String  UPDATE_APP_MALL_ISSUE = "UPDATE_APP_MALL_ISSUE";

    public static final String  UPDATE_APP_MALL_ACCOUNT = "UPDATE_APP_MALL_ACCOUNT";
    public static final String  APP_SMS_CODE_ERROR_COUNT = "APP:SMS_CODE:ERROR_COUNT:%s:%s";
    public static final String  APP_SMS_CODE_SEND_COUNT = "APP:SMS_CODE:SEND_COUNT:%s:%s";
    public static final String APP_MALL_STATISTICS_ORDER = "APP:MALL:STATISTICS_ORDER:%s";
    public static final String APP_MALL_STATISTICS_ACCESS = "APP:MALL:STATISTICS_ACCESS:%s";
    public static final String APP_MALL_STATISTICS_TURNOVER = "APP:MALL:STATISTICS_TURNOVER:%s";
    public static final String APP_MALL_STATISTICS_CONTRIBUT = "APP:MALL:STATISTICS_CONTRIBUT:%s";

    public static final String APP_MALL_VERIFY_OLD_PHONE = "APP:MALL:VERIFY_OLD_PHONE:%s_%s_%s";
    /**
     * 充值配置
     */
    public static final String RECHARGE_CONFIG = "letoken:admin:recharge";

    public static final String CEX_BLOCK_REPLAY_FAIL_LIST = "cex:block:replay:fail";

    /**
     * 用户二维码
     */
    public static final String APP_USER_QR_CODE = "letoken:app:QRCode";

    /**
     * 铸币配置
     */
    public static final String ISSUE_CONFIG = "letoken:issue:config";

    /**
     * 版本更新
     */
    public static final String VERSION_CHECK = "letoken:version:check";

    /**
     * 公告列表
     */
    public static final String ANNOUNCEMENT_LIST = "letoken:announcement:list";

    /**
     * 公告详情
     */
    public static final String ANNOUNCEMENT_DETAIL = "letoken:announcement:detail";

    /**
     * 用户协议
     */
    public static final String AGREEMENT = "letoken:agreement";

    /**
     * 关于我们
     */
    public static final String ABOUT_US = "letoken:aboutUs";

    /**
     * 节点地址
     */
    public static final String CHAIN_NODE_LIST = "letoken:chain_node_list";

    public static final String APP_MALL_HISTORY_SEARCH = "APP:MALL:HISTORY_SEARCH:%s";

    public static final String APP_EX_REPORT_MD5 = "app:exReport:md5";

    public static final String FUND_CONFIG = "letoken:fund:config";


    public static final String ECOMMERCE_HISTORY_SEARCH = "ECOMMERCE:HISTORY_SEARCH:%s";

    public static final String ECOMMERCE_ALL_SEARCH = "ECOMMERCE:ALL_SEARCH";

    public static final String ECOMMERCE_SHOP_INFO = "ECOMMERCE:SHOP_INFO:%s";


    public static final String ECOMMERCE_PRODUCT_PV = "ECOMMERCE:PRODUCT_PV";

    public static final String APP_CONSUMER_MARK = "APP:CONSUMER_MARK";
    public static final String APP_CONSUMER_DATE_MARK = "APP:CONSUMER_DATE_MARK";


    public static final String APP_CONSUMER_FOOTPRINT = "APP:CONSUMER:FOOTPRINT";

    // 用户ID
    public static final String APP_CONSUMER_SHOPPING_CART = "APP:CONSUMER:SHOPPING_CART:%s";

    // 店铺ID
    public static final String APP_CONSUMER_SHOPPING_CART_PRODUCT = "APP:CONSUMER:SHOPPING_CART_PRODUCT:%s_%s";
    public static final String UPDATE_WALLET_INFO = "UPDATE_WALLET_INFO:%s";



}
